package generic;

import java.util.ArrayList;
import java.util.List;


public class GenericsAndCovariance {

	static class Fruit{}
	
	static class Apple extends Fruit{}

	public static void main(String[] args) {
		List<Fruit> list = new ArrayList<Fruit>();
		list.add(new Apple());
	}
}
